//
//  MerchantInfoTableViewCell.m
//  YTwallet
//
//  Created by ZhangLin on 2019/3/4.
//  Copyright © 2019年 hadrlog. All rights reserved.
//

#import "MerchantInfoTableViewCell.h"
#import <Masonry.h>
@implementation MerchantInfoTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        [self setupViews];
    }
    return self;
}
-(void)setupViews
{
    self.tipsLab = [[UILabel alloc] init];
    self.tipsLab.textColor = [UIColor colorWithRed:51 / 255.0 green:51 / 255.0 blue:51 / 255.0 alpha:1];
    self.tipsLab.font = [UIFont systemFontOfSize:14.0];
    [self.contentView addSubview:self.tipsLab];
    
    self.tipsValueLab = [[UILabel alloc] init];
    self.tipsValueLab.textColor = [UIColor colorWithRed:153 / 255.0 green:153 / 255.0 blue:153 / 255.0 alpha:1];
    self.tipsValueLab.font = [UIFont systemFontOfSize:14.0];
    [self.contentView addSubview:self.tipsValueLab];
    
    
}

-(void)layoutSubviews
{
    [super layoutSubviews];
    [self.tipsLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(15);
        make.centerY.equalTo(self);
    }];
    
    [self.tipsValueLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.mas_equalTo(5);
        make.centerY.equalTo(self);
    }];
}



- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
